@(groupForm: Form[Group])

@import helper._
@import html5.tags.html._

@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 

@main("admin")("groups"){
        	<div class="span10">
				<div class="btn-toolbar">
	        	    <div class="btn-group">
					    <a class="btn btn-info" href="@routes.Admin.groups()" rel="tooltip" title="@Messages("admin.groups.links.list")"><i class="icon-list-alt"></i></a>
				    </div>
	        	    <div class="btn-group">
					    <a class="btn" href="@routes.Admin.newgroup()" rel="tooltip" title="@Messages("admin.groups.links.new")"><i class="icon-file"></i></a>
				    </div>
				</div>
			    
			    @form(routes.Admin.savegroup(), 'class -> "form-horizontal") {
			        <legend>@Messages("admin.groups.add.header")</legend>
			        
		            @text(groupForm("name"), '_label -> Messages("common.name"), '_showConstraints -> false)
		            @textarea(groupForm("description"), '_label -> Messages("common.description"), '_showConstraints -> false)
			        
		            <div class="control-group">
						<div class="controls">
				            <input type="submit" value="@Messages("admin.groups.add.confirm")" class="btn btn-success"> ou 
				            <a href="@routes.Admin.groups()">@Messages("common.cancel")</a> 
				        </div>
				    </div>
			        
			    }
			</div>
    
}